﻿using UnityEngine;
using System.Collections;

/// <summary>
/// 触碰回调函数
/// </summary>
public class TouchCallback
{
    // 开始回调函数，（按钮按下、触碰）触发一次
    public delegate void Begin(Vector2 pos, int id = 0);

    // 移动回调函数，移动时触发
    public delegate void Move( Vector2 pos, int id = 0);

    //手指按住回调函数,手指按着不动触发
    public delegate void Hold( Vector2 pos, int id = 0);

    // 结束回调函数，（按钮松开，触离）触发一次
    public delegate void End( Vector2 pos, int id = 0);

    //停止缩放函数，手指少于2个时触发
    public delegate void EndScale(float time);

    // 缩放回调函数，缩放时触发
    public delegate void Scale(float distance);
    
    public delegate void Multi2One(int fingerID,int index1,int index2,TouchPhase phase);

    public delegate void BeginScale();

    // 更新回调函数，每侦触发
    public delegate void Update();
}